package com.soonfor.evaluate.tools;

import android.content.Context;

import com.github.dfqin.grantor.PermissionListener;
import com.github.dfqin.grantor.PermissionsUtil;


public class PermissionsCheckUtil {
    /**
     * 申请授权，当用户拒绝时，不需要显示默认的Dialog提示用户
     * @param context
     * @param listener
     * @param permission 要申请的权限
     */
    public static void requestPermission(Context context, PermissionListener listener, String... permission) {
        PermissionsUtil.requestPermission(context, listener, permission, false, null);
    }

}
